import request from '@/utils/request'

// 查询审批信息记录列表
export function listRecord(query) {
  return request({
    url: '/module/record/list',
    method: 'get',
    params: query
  })
}

// 查询审批信息记录详细
export function getRecord(id) {
  return request({
    url: '/module/record/' + id,
    method: 'get'
  })
}

// 新增审批信息记录
export function addRecord(data) {
  return request({
    url: '/module/record',
    method: 'post',
    data: data
  })
}

// 修改审批信息记录
export function updateRecord(data) {
  return request({
    url: '/module/record',
    method: 'put',
    data: data
  })
}

// 删除审批信息记录
export function delRecord(id) {
  return request({
    url: '/module/record/' + id,
    method: 'delete'
  })
}
//查询我处理的
export function getrRescordProcessedList(query){
  return request({
    url:'/module/record/processed/list',
    method:"GET",
    params: query
  })
}
// 查询审批信息记录列表
export function listRecordSponorList(query) {
  return request({
    url: '/module/record/list',
    method: 'GET',
    params: query
  })
}
